/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.scene.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.istep.common.persistence.DataEntity;

/**
 * 云主机类型管理Entity
 * @author dg
 * @version 2017-04-07
 */
public class SceneVmType extends DataEntity<SceneVmType> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 云主机类型名称
	private String ram;		// 内存
	private String vcpus;		// VCPU数量
	private String disk;		// 磁盘大小
	
	public SceneVmType() {
		super();
	}

	public SceneVmType(String id){
		super(id);
	}

	@Length(min=0, max=64, message="云主机类型名称长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=8, message="内存长度必须介于 0 和 8 之间")
	public String getRam() {
		return ram;
	}

	public void setRam(String ram) {
		this.ram = ram;
	}
	
	@Length(min=0, max=8, message="VCPU数量长度必须介于 0 和 8 之间")
	public String getVcpus() {
		return vcpus;
	}

	public void setVcpus(String vcpus) {
		this.vcpus = vcpus;
	}
	
	@Length(min=0, max=8, message="磁盘大小长度必须介于 0 和 8 之间")
	public String getDisk() {
		return disk;
	}

	public void setDisk(String disk) {
		this.disk = disk;
	}
	
}